<template>
	<view class="container flex-column flex-center">
		<view class="success-img">
			<image src="../../../../static/icon/bindwarning.png" class="my-img"></image>
		</view>
		<view class="text">
			<text>此喷码机信息已被录入</text>
		</view>
		<button type="primary" class="submit-button" @click="on">返回</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:''
			}
		},
		methods: {
			on() {
				uni.reLaunch({
					url:'/pages/views/engineer/MessageDetails/MessageDetails?id='+this.id
				})
			}
		},
		onShow() {
			/**
			 * 检验当前是否已经登录
			 */
			let curRoute  = this.$mp.page.route;
			this.$intercept.permission(curRoute)
		},
		onLoad(op) {
			this.id = op.id
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		width: 100%;
		height: 100%;
		.success-img {
			width: 218rpx;
			height: 218rpx;
		}
		.text {
			margin-top: 40rpx;
		}
		.submit-button {
			margin-top: 40rpx;
			border-radius: 20rpx;
			width: 90%;
			background-color: #09BB07;
		}
	}
</style>
